home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2078 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: doc.ic.ac.uk!not-for-mail
  2. From: mdf@doc.ic.ac.uk (Martin Frost)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: resourcetracking/Kill on A4000
  5. Date: 26 Jan 1996 14:01:51 -0000
  6. Organization: Dept. of Computing, Imperial College, University of London, UK.
  7. Distribution: world
  8. Message-ID: <4eamsf$h5t@oak70.doc.ic.ac.uk>
  9. References: <4e0554$hro@merkurius.lu.se> <4e2cqe$1i2j@rs18.hrz.th-darmstadt.de>
  10. Reply-To: mdf@doc.ic.ac.uk (Martin Frost)
  11. NNTP-Posting-Host: oak70.doc.ic.ac.uk
  12. X-Newsreader: mxrn 6.18-23
  13.  
  14.  
  15. In article <4e2cqe$1i2j@rs18.hrz.th-darmstadt.de>, meixner@rbg.informatik.th-darmstadt.de (Matthias Meixner) writes:
  16. >Resource-tracking is not possible with the current version
  17. >of the OS. The problem is resource trading:
  18.  
  19. >task "a" allocatest memory and sends it to task "b"
  20. >task "b" can now do with it what it wants.
  21. >If you had resourcetracking, the memory would be 
  22. >freed if task "a" terminates and whereas task "b"
  23. >would still use it, which is a good way to bring a
  24. >system down.
  25.  
  26. But how about a patch that would just keep track of resources and put up a
  27. warning when an allocation was not freed or whatever. Freeing other programs'
  28. memory is a bad thing, as pointed out above. If there was an option with the
  29. program to tell it that certain programs are allowed to leave certain blocks
  30. of memory free (eg a program which installs a patch on a library, or programs
  31. which detach themselves from the CLI) then the warnings would only appear for
  32. programs which actually have bugs in. This program would also be able to check
  33. for free-twice errors, which are more serious than simply leaving something
  34. unfreed. I suppose that the error requester saying that a program had quit
  35. leaving unfreed memory could offer the option to free it anyway, in the case
  36. of programs which are unlikely to leave patches, and are simply buggy.
  37.  
  38. I might write such a program, when (if :-) I finish my current project.
  39.  
  40. Martin
  41.